Describes the layout of data inside a mesh. More...
Describes the layout of data inside a mesh.
| nkGraphics::MeshInputLayout::MeshInputLayout | ( | ) |
Default constructor.
| nkGraphics::MeshInputLayout::~MeshInputLayout | ( | ) |
Destructor.
| unsigned long long nkGraphics::MeshInputLayout::getHash | ( | ) | const |
| nkMemory::StringView nkGraphics::MeshInputLayout::getPositionAttributeName | ( | ) | const |
| nkMemory::StringView nkGraphics::MeshInputLayout::getNormalAttributeName | ( | ) | const |
| nkMemory::StringView nkGraphics::MeshInputLayout::getTexCoordAttributeName | ( | ) | const |
| void nkGraphics::MeshInputLayout::setAttribute | ( | const MeshInputLayoutAttribute & | attribute, |
| unsigned int | index | ||
| ) |
Sets an attribute at a given index, overriding its values.
| attribute | The new values to set. |
| index | The index of the attribute to override, in the attribute list. |
| void nkGraphics::MeshInputLayout::setPositionAttributeName | ( | const nkMemory::StringView & | value | ) |
Sets the name of the contained attribute that should be considered as providing position information.
| value | The name of the attribute. |
| void nkGraphics::MeshInputLayout::setNormalAttributeName | ( | const nkMemory::StringView & | value | ) |
Sets the name of the contained attribute that should be considered as providing normal information.
| value | The name of the attribute. |
| void nkGraphics::MeshInputLayout::setTexCoordAttributeName | ( | const nkMemory::StringView & | value | ) |
Sets the name of the contained attribute that should be considered as providing texture coordinate information.
| value | The name of the attribute. |
| void nkGraphics::MeshInputLayout::addAttribute | ( | const MeshInputLayoutAttribute & | attribute | ) |
Adds an attribute to the layout's list.
| attribute | The attribute to append. |
| const MeshInputLayoutAttribute* nkGraphics::MeshInputLayout::getAttribute | ( | unsigned int | index | ) | const |
Allows to access an attribute for reading operations.
| index | The list index of the attribute to access. |
| const MeshInputLayoutAttribute* nkGraphics::MeshInputLayout::getAttribute | ( | const nkMemory::StringView & | name | ) | const |
Allows to access an attribute for reading operations.
| name | The name of the attribute to access. |
| unsigned int nkGraphics::MeshInputLayout::getAttributeCount | ( | ) | const |
| unsigned int nkGraphics::MeshInputLayout::getTotalDeclarationSlots | ( | ) | const |
| void nkGraphics::MeshInputLayout::removeAttribute | ( | unsigned int | index | ) |
Removes an attribute from the list.
| index | The index of the attribute to remove. |
| void nkGraphics::MeshInputLayout::removeAttribute | ( | const nkMemory::StringView & | name | ) |
Removes an attribute from the list.
| name | The name of the attribute to remove. |
| bool nkGraphics::MeshInputLayout::hasAttribute | ( | const nkMemory::StringView & | name | ) | const |
Checks if layout has a given attribute available.
| name | The name of the attribute to check. |
| bool nkGraphics::MeshInputLayout::operator< | ( | const MeshInputLayout & | other | ) | const |
| other | The layout to compare with. |
| bool nkGraphics::MeshInputLayout::operator== | ( | const MeshInputLayout & | other | ) | const |
| other | The layout to compare with. |